package com.dpwgc.demo.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 上传日志记录
 */
@TableName(value = "dp_log")
public class Log {

    @TableId(value = "id",type = IdType.AUTO)
    private int id;//编号
    private String logUri;//访问控制器路径（例：/Upload/uploadFile）
    private String logTime;//记录时间
    private String userIp;//上传用户IP地址
    private String serverIp;//服务器IP地址
    private String uploadFileName;//上传文件名
    private String uploadFilePath;//文件保存路径

    public void setUploadFileName(String uploadFileName) {
        this.uploadFileName = uploadFileName;
    }

    public void setUploadFilePath(String uploadFilePath) {
        this.uploadFilePath = uploadFilePath;
    }

    public String getUploadFileName() {
        return uploadFileName;
    }

    public String getUploadFilePath() {
        return uploadFilePath;
    }

    public int getId() {
        return id;
    }

    public String getLogTime() {
        return logTime;
    }

    public String getLogUri() {
        return logUri;
    }

    public String getServerIp() {
        return serverIp;
    }

    public String getUserIp() {
        return userIp;
    }

    public void setLogTime(String logTime) {
        this.logTime = logTime;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setLogUri(String logUri) {
        this.logUri = logUri;
    }

    public void setServerIp(String serverIp) {
        this.serverIp = serverIp;
    }

    public void setUserIp(String userIp) {
        this.userIp = userIp;
    }

    @Override
    public String toString() {
        return "Log{" +
                "id=" + id +
                ", logUri='" + logUri + '\'' +
                ", logTime='" + logTime + '\'' +
                ", userIp='" + userIp + '\'' +
                ", serverIp='" + serverIp + '\'' +
                ", uploadFileName='" + uploadFileName + '\'' +
                ", uploadFilePath='" + uploadFilePath + '\'' +
                '}';
    }
}
